<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>영화</h3>
<hr align="left" width="150">
<center>
<table class="movieInfolist">
   <thead>
   <tr>
      <th class="no">NO</th>
      <th class="title">영화 제목</th>
   </tr>
   </thead>
   <tbody>   
   <c:forEach var="movieVO" items="${requestScope.mListVO.movieList}">   
      <tr>
          <td>${movieVO.movieNo }</td>
         <td>
            <a href="${initParam.root }admin/movie_content.do?movieNo=${movieVO.movieNo }">${movieVO.title }</a>
         </td>
      </tr>
   </c:forEach>
   
   </tbody>
   <tfoot>
   <tr>
      <td colspan="2" align="right"><a href="${initParam.root}admin/findAllDirector.do"><img  src="${initParam.root}img/write_btn.jpg" border="0"></a></td>      
   </tr>
   <tr>
      <td colspan="2">
      <c:if test="${requestScope.mListVO.pagingBean.previousPageGroup}">
          <a href="${initParam.root }admin/movieList.do?pageNo=${requestScope.mListVO.pagingBean.startPageOfPageGroup-1}">◀&nbsp;</a>
       </c:if>
       &nbsp;&nbsp;
      <c:forEach var="i" begin="${requestScope.mListVO.pagingBean.startPageOfPageGroup}" end="${requestScope.mListVO.pagingBean.endPageOfPageGroup}">
          <c:choose>
             <c:when test="${requestScope.mListVO.pagingBean.nowPage!=i}">
                <a href="${initParam.root }admin/movieList.do?pageNo=${i}">${i}</a>
             </c:when>
             <c:otherwise>
               ${i}
            </c:otherwise>
         </c:choose>
      </c:forEach>    
      &nbsp;&nbsp;
      <c:if test="${requestScope.mListVO.pagingBean.nextPageGroup}">
         <a href="${initParam.root }admin/movieList.do?pageNo=${requestScope.mListVO.pagingBean.endPageOfPageGroup+1}"> ▶ </a>
      </c:if>   
      </td>
   </tr>      
   </tfoot>
</table>
</center>